<div class="art">
  <div class="date"><?php echo humanDate($data[0]['tstamp']) ?></div>
  <h2><?php echo htmlspecialchars($data[0]['subj'], ENT_NOQUOTES) ?><?php
if($this -> user -> authorized && $this -> user -> userInfo['update'] == 1){
?>
<a href="<?php echo $_SERVER['REDIRECT_URL'] ?>?action=edit&amp;article=<?php echo $snippetId ?>"><img src="/skin/i/edit.gif" border="0" title="редактировать" hspace="6" /></a>
<?php
}
if($this -> user -> authorized && $this -> user -> userInfo['remove'] == 1){
?>
<a href="<?php echo $_SERVER['REDIRECT_URL'] ?>?action=delete&amp;article=<?php echo $snippetId ?>" onclick="return confirm('Вы уверены, что хотите удалить документ?')"><img src="/skin/i/delete.gif" border="0" title="удалить" hspace="6" /></a>
<?php
}
?></h2>
  <table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
      <td>
        <div class="description"></div></td></tr>
    <tr>
      <td>
        <div class="text"><?php  echo $data[0]['text'] == ''? $data[0]['description'] : $data[0]['text']; ?></div></td></tr>
  </table>
</div>
